package com.xlh.aop;

import com.xlh.enums.user.EventCodeEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 流水记录
 * <p>
 * Created by lx on 2019/1/25.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface OperationRecording {

    /**
     * 事件枚举
     *
     * @return
     */
    EventCodeEnum codeEnum() default EventCodeEnum.LOGIN;

    /**
     * 对象id
     *
     * @return
     */
    String objId() default "";

    /**
     * 类型
     *
     * @return
     */
    String type() default "";

}
